export const PAGE_CODE = 'dcs-afterSales-workItem';
import {PAGE} from '../constants';
import {workItemStatus, workItemCategoryStatus, isYesNo} from '../Enum';
export const PERMISSION = Object.freeze({
    add: 'add',
    update: 'update',
    import: 'import',
    export: 'export',
    enable: 'enable',
    disable: 'disable',
    setLaborHour: 'setLaborHour',
    setAssist: 'setAssist',
    categoryAdd: 'category-add',
    categoryUpdate: 'category-update',
    categoryEnable: 'category-enable',
    categoryDisable: 'category-disable',
    categoryImport: 'category-import',
    modeManage: 'mode-manage',
    advancedExport: 'advanced-export',
    laborhourImport: 'laborHour-import'
});

export const DEFAULT_QUERY_OPTION = {
    workItemCategoryId: '',
    code: '',
    name: '',
    status: workItemStatus.生效,
    isCustomed: isYesNo.否,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};

export const DEFAULT_HIGH_QUERY_OPTION = {
    workItemCategoryId: '',
    code: '',
    name: '',
    partCode: '',
    productCategoryCode: [],
    status: workItemCategoryStatus.生效,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
export const DEFAULT_SUBMIT_DATA = {
    expenseAdjustments: [],
    claims: [],
    details: [],
};

export const dangerColor = '#ff4d4f';

export const EMPTY_CATEGORY = {
    id: null,
    code: '',
    name: '',
    typeId: null,
    remark: ''
};
